//
//  cancelCell.m
//  Focus
//
//  Created by dlios on 14-11-10.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "cancelCell.h"

@implementation cancelCell
-(void)dealloc{
    [super dealloc];
    [_button release];
    [_cancel release];
    
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        self.button = [[UIButton alloc]initWithFrame:CGRectZero];
        [self.contentView addSubview:self.button];
        
        UILabel *cancel = [[UILabel alloc]initWithFrame:CGRectZero];
        self.cancel = cancel;
        [cancel release];
        [self.contentView addSubview:self.cancel];
        
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];

     self.button.frame = CGRectMake(8, -5, 60, 60);
    self.cancel.frame = CGRectMake(130, 15, 60, 20);
    self.cancel.font = [UIFont systemFontOfSize:14];
    
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
